//
//  TouchView.m
//  03-UIResponder
//
//  Created by 韩旭 on 16/7/18.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "TouchView.h"

@implementation TouchView
/** UIResponder */
//继承于UIResponder
//Appdelegate UIView UIViewController

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    NSLog(@"self.view%@", self.nextResponder);
    NSLog(@"ViewController%@", self.nextResponder.nextResponder);
    NSLog(@"Window%@", self.nextResponder.nextResponder.nextResponder);
    NSLog(@"Appdelegate%@", self.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"Appdelegate%@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"null");
//    [super touchesBegan:touches withEvent:event];
//    NSLog(@"class------------%@", NSStringFromClass(self.class));  NSLog(@"-----%s", __func__);
}

//- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//        NSLog(@"class------------%@", NSStringFromClass(self.class));  NSLog(@"-----%s", __func__);
//}
//
//- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//        NSLog(@"class------------%@", NSStringFromClass(self.class));  NSLog(@"-----%s", __func__);
//}
@end
